package OEScode;

public class Examinee extends Component{
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Examinee(String name) {
        this.name = name;
    }

    @Override
    public void notify(String message) {
        System.out.println("考生<"+name+">接到通知 "+message);
    }
}
